package com.shiyuanshenghong.web.controller.protraitsofpoorhoseholdscontroller;

import com.shiyuanshenghong.service.portraitsofpoorhoseholdsservice.PortraitsOfPoorHouseholdsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by LZQ on 2017/12/18.
 */

@RestController
public class PortraitsOfPoorsHoseholdsController {

    @Autowired
    private PortraitsOfPoorHouseholdsService portraitsOfPoorHouseholdsService;

    @GetMapping("/poverty/portray")
    public Map<String,Integer> distributionOfPoorThermal(){
        Map<String,Integer> map=portraitsOfPoorHouseholdsService.distributionOfPoorThermal();
        return map;
    }



}
